package com.bytz.modules.cms.pay.service;

import com.bytz.modules.cms.order.entity.OrderPayDetail;
import com.bytz.modules.cms.order.model.PayNotifyResult;

import javax.servlet.http.HttpServletRequest;

public interface ISpecificPayOnlineService {

	/**
	 * 发起支付
	 * @param payDetail 支付明细
	 */
	String startPayPage(OrderPayDetail payDetail);

	/**
	 * 解析支付前台通知
	 * @param request 请求
	 */
	PayNotifyResult parseFrontNotify(HttpServletRequest request);

	/**
	 * 解析支付后台通知
	 * @param request 请求
	 *
	 */
	PayNotifyResult parseBackNotify(HttpServletRequest request);

	/**
	 * 交易查询结果
	 * @param payDetail 支付明细
	 */
	PayNotifyResult queryPayResult(OrderPayDetail payDetail);

}
